<a
  href="javascript:void(0);"
  class="easyui-linkbutton"
  data-options="iconCls:'eova-icon723',plain:true"
  onclick="singleDetail()"
  >${button.name!'查看'}</a
>

<link rel="stylesheet" type="text/css" href="${STATIC!}/xadmin/lib/layui/css/layui.css" />
<button type="button" class="layui-btn layui-btn-primary layui-btn-sm" onclick="singleDetail2()"
  >${button.name!'查看'}</button
>
<script type="text/javascript" src="${STATIC!}/xadmin/lib/layui/layui.all.js"></script>
<script type="text/javascript">
  var singleDetail = function () {
  	var $grid = $('#grid');
      if (isSelected($grid)) {
       var row = $.getWidgetSelected($grid);
          loadDialog($grid, '${object.name} ${I18N(button.name)}', '/form/detail/${object.code}-' + row.pk_val, ${menu.config.params.width!'945'}, ${menu.config.params.height!'600'});
      }
  };
  var singleDetail2 = function () {
  	var $grid = $('#grid');
      if (isSelected($grid)) {
       var row = $.getWidgetSelected($grid);
          loadDialog($grid, '${object.name} ${I18N(button.name)}', '/form2/detail/${object.code}-' + row.pk_val, ${menu.config.params.width!'945'}, ${menu.config.params.height!'600'});
      }
  };
</script>
